<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
	$(function() {
		$("#Ajax").click(function() {
			$.getJSON("ajax.do", function(result) {
				$(result).each(function(index, item) {
					console.log(index + "," + item.uname + "," + item.age)
				})
			})
		})
		$("#Ajax1").click(function() {
			$.getJSON("ajax1.do", function(result) {
				$(result).each(function(index, item) {
					console.log(index + "," + item.uname + "," + item.age)
				})
			})
		})
		$("#Ajax2").click(function() {
			$.getJSON("ajax2.do", function(result) {
				$(result).each(function(index, item) {
					console.log(index + "," + item.uname + "," + item.age)
				})
			})
		})
		$("#Ajax3").click(function() {
			$.getJSON("ajax3.do", function(result) {
				$(result).each(function(index, item) {
					console.log(index + "," + item.uname + "," + item.age)
				})
			})
		})
	})
</script>
<title>Insert title here</title>
</head>
<body>
	<a href="Cookie.do">######################cookie测试############################</a>
	<br>
	<a href="login.do?uname=jick&pwd=123">######################登录测试############################</a>
	<br>
	<a href="action1.do">######################c重定向测试############################</a>
	<br>
	<a href="success.do?uname=tom&age=20">==============sayHello===================================</a>
	<br>
	<br>
	<img alt="prc" src="image/2.jpg">
	<button id="Ajax">点击</button>
	<button id="Ajax1">点击1</button>
	<button id="Ajax2">点击2</button>
	<button id="Ajax3">点击3</button>
	========================================================<br>
	form表单四种请求方式
	查询:<form  action="user" method="get">
	<input type="text" name="uname">
	<input type="submit" value="提交">
	</form>
	<br>
	修改:<form  action="user" method="post">
	<input type="hidden" name="_method" value="PUT">
	<input type="text" name="uname">
	<input type="submit" value="提交">
	</form>
	<br>
	删除:<form  action="user" method="post">
	<input type="hidden" name="_method" value="DELEATE">
	<input type="text" name="uname">
	<input type="submit" value="提交">
	</form>
	<br>
	添加:<form  action="user" method="post">
	<input type="text" name="uname">
	<input type="submit" value="提交">
	</form>
	
	
	================================================= 文件上传
	<form action="uploadFile.do" method="post" enctype="multipart/form-data">
		<input type="file" name="upload"> 
		<input type="submit" value="上传">
	</form>
${msg}




</body>
</html>